<template>
  <div class="buttonback" @click="buttonbackclick">
    
    <img src="../../../assets/images/home/top.svg" alt="" />
    <slot name="buttonimg"></slot>
  </div>
</template>
<script>
export default {
  name: "ButtonBack",
  methods: {
    buttonbackclick() {
      this.$emit('buttonbackclick')
    },
  },
};
</script>

<style scoped>
.buttonback {
  display: grid;
  position: fixed;
  bottom: 25vw;
  right: 2vw;
  height: 10vw;
  text-align: center;
  background-color: #fff;
  border-radius: 10vw;
  cursor: pointer;
}
.buttonback img {
  width: 10vw;
}
</style>